import pandas as pd
from pyecharts import Pie

df = pd.read_csv(open('C:\\Users\\27498\\Desktop\\hanhongwei.csv', encoding='utf-8'))
df.head()
datal = df.groupby('Sex')['Sex'].count()
attr = ['未知性别', '男', '女']
v1 = [23, 137, 60]
print(v1)
pie = Pie()
pie.add('测试', attr, v1, )
pie.render('test.html')
